@extends('layouts.layouts')
@section('title')
    <title>后台首页</title>
@endsection
@section('content')
    <link rel="stylesheet" href="/lib/layer/theme/default/layer.css"/>
    <script type="text/javascript" src="/lib/layer/layer.js"></script>
    <div class="content">
        <div class="header">
            <ul class="breadcrumb">
                <li><a href="/admin/wechatName">专题页微信名列表</a></li>
                <li class="active">微信名列表</li>
            </ul>
        </div>
        <div class="main-content">
            <div class="btn-toolbar list-toolbar">
                <form class="form-inline" action="" method="get">
                   <!-- <a href="/activity/add"><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" ><i class="fa fa-plus"></i> 新增</button></a>-->
                    <div class="form-group">
                        <select name = "name" class="selectpicker show-tick form-control ">
                                <option value="zz" @if($title == "zz") selected @endif>李智芝</option>
                                <option value="kunkun" @if($title == "kunkun") selected @endif>闫君</option>
                        </select>
                        
                    </div>
                    <button type="submit" class="btn btn-default">筛选</button>
                </form>
            </div>
            <div class="row">
                <div class="col-sm-12 col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading no-collapse">专题页微信名列表</div>
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>姓名</th>
                                <th>来源地址</th>
                                <th>操作人</th>
                                <th>开始时间</th>
                                <!--<th>操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
							@foreach($data as $k)
								<tr>
									<td>{{$k->id}}</td>
									<td>{{$k->name}}</td>
									<td>{{$k->url}}</td>
									<td>{{$k->user_id}}</td>
									<td>{{$k->created_at}}</td>
									<!--<td>删除</td>-->
								</tr>
							@endforeach
                            </tbody>
                        </table>

                    </div>
                   
                </div>
            </div>
             {{$data->appends(['name'=>$title])->render()}}
        </div>
    </div>

@endsection